package dom;
public class Frog extends Animal implements IAmphibious{
    public Frog() {
        super("青蛙");
    }

    @Override
    public void eat() {
        System.out.println(name+"正在吃蚊子");
    }

    @Override
    public void amphibious() {
        System.out.println(name+"是两栖动物");
    }

    @Override
    public void run() {
        System.out.println(name+"正在用两条腿跳...");
    }

    @Override
    public void swim() {
        System.out.println(name+"正在用两条后推游泳...");
    }
}
